Skip to content

feat(rodiumai): add sync provider with base_model and reasoning_options#2159

Open
Docteur-Parfait wants to merge 11 commits into
anomalyco:devfrom
Rodium-AI:feat/rodiumai-sync-provider
Open

feat(rodiumai): add sync provider with base_model and reasoning_options#2159
Docteur-Parfait wants to merge 11 commits into
anomalyco:devfrom
Rodium-AI:feat/rodiumai-sync-provider

Conversation

@Docteur-Parfait

@Docteur-Parfait Docteur-Parfait commented Jun 12, 2026

Copy link
Copy Markdown

Summary

  • Add RodiumAi provider for OpenCode / models.dev (providers/rodiumai/, OpenAI-compatible API at https://api.rodiumai.io/v1).
  • Wire bun models:sync rodiumai (packages/core/src/sync/providers/rodiumai.ts) — syncs coding/chat models from GET /v1/models (tools + text output; excludes embeddings, image, video) plus five smart-routing profiles (auto, basic, fast, pro, max).
  • Follow provider sync guidelines: vendor slugs use base_model where canonical models/ metadata exists; every model declares reasoning_options (Anthropic effort/toggle defaults or []).

Provider details

Item Value
Env RODIUMAI_API_KEY
npm @ai-sdk/openai-compatible
Models synced 55 (50 API coding/chat + 5 smart profiles)
Sync group aggregators (hourly automation via existing workflow)

Test plan

  • bun rodiumai:sync
  • bun validate
  • bun test packages/core/test/rodiumai-sync.test.ts
  • bun models:sync rodiumai --dry-run (idempotent: 55 unchanged)
  • OpenCode smoke: opencode --model rodiumai/auto, rodiumai/anthropic/claude-sonnet-4-6

Links

rodiumai and others added 9 commits May 25, 2026 09:13
RodiumAi exposes an **OpenAI-compatible** API at `https://api.rodiumai.io/v1`. Model IDs in this PR match the slugs returned by `GET /v1/models` on the live gateway.
Add RodiumAi as an OpenAI-compatible gateway (api.rodiumai.io) with smart
routing tiers (auto, fast, basic, pro, max) and proxied upstream models.

Register the rodium-smart model family and add required release_date and
last_updated fields so bun validate passes in CI.
Add RodiumAi to bun models:sync from GET https://api.rodiumai.io/v1/models.
Sync coding/chat models only (tools + text output; excludes embeddings,
image, video). Vendor slugs factor canonical metadata via base_model; every
model declares reasoning_options. Includes five smart-routing profiles and
rodiumai-sync unit tests.
last_updated = "2026-06-12"
reasoning = false
structured_output = true
reasoning_options = []

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesnt support reasoning budgets?

reasoning = false
temperature = true
structured_output = true
reasoning_options = []

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no reasoning efforts?

@rekram1-node

Copy link
Copy Markdown
Collaborator

a lot of the reasoning options seem incorrect here im skeptical

@Docteur-Parfait

Copy link
Copy Markdown
Author

Good catch — the first pass incorrectly defaulted Anthropic passthrough models to reasoning_options = [] because RodiumAi's supports_reasoning flag is false for adaptive-thinking models (Opus 4.7/4.8) even though they expose effort controls.

Updated to mirror providers/anthropic/models/:

  • Opus 4.7/4.8: effort (low–max)
  • Opus 4.1: budget_tokens only (no effort — pre-adaptive-thinking generation)
  • Opus 4.6/4.5, Sonnet 4.6: effort + budget
  • Sonnet 4.5, Haiku 4.5: budget only

@rekram1-node

Copy link
Copy Markdown
Collaborator

okay but can u check all ur models plz. like i said i doubt this is correct

@Docteur-Parfait

Copy link
Copy Markdown
Author

Alright I will check all of that and submit a new commit

…provider models now use base_model + OpenRouter-aligned overrides (cost, reasoning_options, limits from live API). Re-run bun rodiumai:sync to refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Docteur-Parfait

Copy link
Copy Markdown
Author

Removed synthetic smart profiles (auto/basic/fast/pro/max). RodiumAI provider models now use base_model + OpenRouter-aligned overrides (cost, reasoning_options, limits from live API). Re-run bun rodiumai:sync to refresh.

@rekram1-node

Copy link
Copy Markdown
Collaborator

AUTOMATED REVIEW: The model definitions pass the base_model and reasoning_options requirements, but the new provider logo is not compliant. providers/rodiumai/logo.svg has fixed root dimensions (width="4635", height="1000") and fixed colors including fill="black". Provider SVGs must have no fixed size or colors and must use currentColor for fills/strokes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants